package Swing;
import javax.imageio.ImageIO;
import java.awt.*;
import java.io.*;
import javax.swing.*;
public class showImage extends JFrame{
	private static final long serialVersionUID = 1L;
	public showImage(String bmpFile){
        super("showImage");
        setVisible(true);
        Image image =null;
        try{
            image=ImageIO.read(new File(bmpFile));
        }catch(IOException ex){
        }
        JLabel label =new JLabel(new ImageIcon(image));
        add(label);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        pack();
    }
}